package TwoDay;

import java.util.Scanner;

public class Num7 {
    public static void main(String[] args) {
        int a;
        Scanner scanner = new Scanner(System.in);
        System.out.printf("请输入一个任意的三位数");
        a = scanner.nextInt();
        int a1 = a/100;
        int a2 = a%100/10;
        int a3 = a%100%10;
        if (a>99&&a<1000){
            if (a==(a1*a1*a1+a2*a2*a2+a3*a3*a3)){
                System.out.printf("是水仙花");
            }else {
                System.out.printf("不是水仙花");
            }
        }else {
            System.out.printf("格式不对，重新输入");
        }

    }
}
